package com.yixun.qfbao.service;

import com.yixun.common.page.Page;
import com.yixun.qfbao.model.Customer;
import com.yixun.qfbao.model.dto.CustomerDto;
import com.yixun.qfbao.xf.model.dto.CustomerPremisesDto;

import java.util.List;

public interface CustomerService {

	Page<Customer> getPageModel(CustomerDto entity, int begin, int end);
	
	List<Customer> selectListByDto(CustomerDto entity);
	
	Customer selectByDto(CustomerDto entity);
	
	Customer selectById(Long id);

	Customer create(Customer entity);

	int update(Customer entity);

	int updateByIds(Customer entity, List<Long> updateIds);

	int saveOrUpdate(Customer entity);

	void addReport2BindCustomer(CustomerPremisesDto entity);

	List<CustomerDto> selectRepeatCustomerList();
}
